﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Cwjk_BatchSet.aspx.vb" Inherits="PubProject.Cwjk_BatchSet" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Cwjk_Pzsz_BatchSet</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<link rel="stylesheet" type="text/css" href="/_forms/styles/Form.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/dialogs.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_forms/FormBase.js"></script>
		<script language="javascript" src="/_controls/datetime/time.js"></script>
		<script language="javascript">
		
		function ReturnData()
		{
			var sReturn = "";
			if(Trim(document.all("txtRptCode").value) != "")
			{
				sReturn = "code:" + Trim(document.all("txtNowCode").value) + ":" + Trim(document.all("txtRptCode").value) + "!";
			}
			else
			{
				sReturn = "code!";
			}
			
			if(Trim(document.all("txtRptName").value) != "")
			{
				sReturn = sReturn + "name:" + Trim(document.all("txtNowName").value) + ":" + Trim(document.all("txtRptName").value) + "!";
			}
			else
			{
				sReturn = sReturn + "name!";
			}
			
			if(Trim(document.all("txtHsType").value) != "")
			{
				sReturn = sReturn + "type:" + Trim(document.all("txtHsType").value) + "!";
			}
			else
			{
				sReturn = sReturn + "type!";
			}
			
			if (__operobject.value !="预约单" && Trim(document.all("txtRptCode").value) == "" && Trim(document.all("txtRptName").value) == "" && Trim(document.all("txtHsType").value) == "")
			{
				sReturn = "";
			}
			else
			{
				if (document.all("rtnRuleRptAll").checked) sReturn = sReturn + "Rule:ALL";
				if (document.all("rtnRuleRptNull").checked) sReturn = sReturn + "Rule:NULL";
			}
			 
			parent.window.returnValue = sReturn;
			parent.window.close();
		}
		
		function window.onload()
		{
			if(__operobject.value == "预约单")
			{
				document.all("trNowCode").style.display = "none";
				document.all("trRptCode").style.display = "none";
				document.all("trNowName").style.display = "none";
				document.all("trRptName").style.display = "none";
			}
			
			document.all("trHsType").style.display = "none";	
			
		} 
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="crmForm" method="post" runat="server" class="map">
			<asp:LinkButton id="lbnSubmit" runat="server" style="DISPLAY:none"></asp:LinkButton>
			<table width="100%" cellspacing="0" cellpadding="0" height="100%">
				<tr>
					<td class="header">
						<div class="header">批量生成</div>
					</td>
				</tr>
				<tr>
					<td class="main">
						<table style="TABLE-LAYOUT: fixed;VERTICAL-ALIGN: text-bottom" cellSpacing="0" cellPadding="3"
							width="100%" height="100%">
							<COLGROUP>
								<col width="100">
								<col>
							</COLGROUP>
							<tr height="25" style="VERTICAL-ALIGN:bottom">
								<td colspan="2">
									<asp:Label id="LblMsgCode" runat="server"></asp:Label>
								</td>
							</tr>
							<tr id="trNowCode" height="25" style="VERTICAL-ALIGN:bottom">
								<td><asp:Label id="LblNowMsgCode" runat="server"></asp:Label></td>
								<td>
									<asp:textbox id="txtNowCode" runat="server" Width="100%" MaxLength="80" CssClass="ro" forbiddenchars="@#?|,;'&quot;&amp;&lt;&gt;"></asp:textbox>
								</td>
							</tr>
							<tr id="trRptCode" height="25" style="VERTICAL-ALIGN:bottom">
								<td><asp:Label id="LblRptMsgCode" runat="server"></asp:Label></td>
								<td>
									<asp:textbox id="txtRptCode" runat="server" Width="100%" MaxLength="80" CssClass="inputStr" forbiddenchars="@#?|,;'&quot;&amp;&lt;&gt;"></asp:textbox>
								</td>
							</tr>
							<tr height="15" style="VERTICAL-ALIGN:bottom">
								<td colspan="2">
								</td>
							</tr>
							<tr height="25" style="VERTICAL-ALIGN:bottom">
								<td colspan="2">
									<asp:Label id="LblMsgName" runat="server"></asp:Label>
								</td>
							</tr>
							<tr id="trNowName" height="25" style="VERTICAL-ALIGN:bottom">
								<td><asp:Label id="LblNowMsgName" runat="server"></asp:Label></td>
								<td>
									<asp:textbox id="txtNowName" runat="server" Width="100%" MaxLength="80" CssClass="ro" forbiddenchars="@#?|,;'&quot;&amp;&lt;&gt;"></asp:textbox>
								</td>
							</tr>
							<tr id="trRptName" height="25" style="VERTICAL-ALIGN:bottom">
								<td><asp:Label id="LblRptMsgName" runat="server"></asp:Label></td>
								<td>
									<asp:textbox id="txtRptName" runat="server" Width="100%" MaxLength="80" CssClass="inputStr" forbiddenchars="@#?|,;'&quot;&amp;&lt;&gt;"></asp:textbox>
								</td>
							</tr>
							<tr height="15" style="VERTICAL-ALIGN:bottom">
								<td colspan="2"></td>
							</tr>
							<tr height="25" style="VERTICAL-ALIGN:bottom" id="trHsType">
								<td><asp:Label id="LblMsgHs" runat="server"></asp:Label></td>
								<td>
									<asp:textbox id="txtHsType" runat="server" Width="100%" MaxLength="80" CssClass="inputStr" Visible="False"></asp:textbox>
								</td>
							</tr>
							<tr height="10" style="VERTICAL-ALIGN:bottom">
								<td colspan="2"></td>
							</tr>
							<tr height="25" style="VERTICAL-ALIGN:bottom">
								<td colspan="2">
									<table style="TABLE-LAYOUT: fixed;VERTICAL-ALIGN: text-bottom" cellSpacing="0" cellPadding="0"
										width="100%" height="100%">
										<COLGROUP>
											<col>
											<col>
										</COLGROUP>
										<tr>
											<td><asp:RadioButton id="rtnRuleRptAll" runat="server" GroupName="a" Text="全部替换"></asp:RadioButton></td>
											<td><asp:RadioButton id="rtnRuleRptNull" runat="server" GroupName="a" Checked="True" Text="只替换为空记录"></asp:RadioButton></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="40">
					<td class="buttons">
						<button value="确 定" onclick="ReturnData()" id="btnOk" NAME="btnOk" type="button" style="WIDTH:70px">
							确 定</button>&nbsp;&nbsp; <button value="取 消" onclick="parent.window.close();" id="btnClose" NAME="btnClose" type="button"
							style="WIDTH:70px">取 消</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
